<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>数组字面量</title>
</head>

<body>
    <script>
        let array = [1, 2, "hello", true];
        console.log(array);
        console.log(array.length);
        console.log(array[1]);
        var fish = ["lion", , "angle"];
        console.log(fish);
        var mylist = ['home', , 'school', ]
        console.log(mylist);
        mylist = ['home', , 'school', ]
        console.log(mylist);
    </script>
</body>

</html>